export default function status(state = '', action) {
  const { type, payload} = action;
  switch (type) {
    case 'CHANGESTATUS':
      return payload;
    case 'GET':
      return payload + 'status';
    default:
      return state;
  }
}